package com.software.seakdream.repository;

import com.software.seakdream.entity.History;
import java.util.List;

import com.software.seakdream.entity.HistoryRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface HistoryRepository {
    int createHistory(History history);

    int deleteHistory(String userId, String audioId);

    List<History> findHistory(String userId);

    List<HistoryRecord> findHistoryInRange(String userId, int left, int size);


    void deleteAllHistory(String userId);
}